/*
 * 类目 基础管理 事务管理  捐赠维护
 */
import { getRequest, postRequest, downloadRequestget } from '/@/lib/axios';

export const Instantly = {
  //   立项申请表单
  FoundtableInit: (param) => {
    return postRequest('/foundation/blapplyprojectinfo/list', param);
  },
  //立项申请添加
  addInstantly: (param) => {
    return postRequest('/foundation/blapplyprojectinfo/save', param);
  },
  //立项父级协议
  FoundFarter: (param) => {
    return getRequest('/foundation/blagreement/getAll', param);
  },
  //立项联系人
  FoundLxiren: (param) => {
    return getRequest('/foundation/blleaderlist/getAll', param);
  },
  //立项申请详情
  detailApi: (blinfoid) => {
    return postRequest(`/foundation/blapplyprojectinfo/info/${blinfoid}`);
  },
  // 修改项目立项
  updateFound: (param) => {
    return postRequest('/foundation/blapplyprojectinfo/update', param);
  },
  // 删除立项
  DeleteFound: (param) => {
    return postRequest('/foundation/blapplyprojectinfo/delete', param);
  },
  //立项查看记录
  RecordingFind: (param) => {
    return postRequest(`/foundation/blacelog/infoByBlinfoid`, param);
  },
  //协议管理
  FindPeoess: (param) => {
    return postRequest('/foundation/blapplyprojectinfo/getBlagreementList', param);
  },
  // 查询审批状态
  FindProtocol: (blinfoid) => {
    return getRequest(`/foundation/blapplyprojectinfo/getStutus/${blinfoid}`);
  },
  //下载项目申报书
  DowloadBook: (param) => {
    return downloadRequestget('/foundation/blapplyprojectinfo/fileUplod', param);
  },
 
};
